package cn.itsource;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

//声明当前类是一个SpringBoot项目的启动类
@SpringBootApplication
//扫描Mapper接口的包下所有的Mapper接口，生成这些接口的代理对象，供业务Service注入使用
@MapperScan("cn.itsource.*.mapper")
@ServletComponentScan(value = {"cn.itsource.basic.annotation"})
public class PetHomeApp {
    public static void main(String[] args) {
        SpringApplication.run(PetHomeApp.class,args);
    }
}
